#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;

const int N = 1e5;
int num[N], a[N], b[N];
int lx, ly, lz;

int main()
{
	string x, y; cin >> x >> y;
	lx = x.size(), ly = y.size(), lz = max(lx, ly);
	for (int i = 0; i < lx; i++)
		a[i] = x[lx - 1 - i] - '0';
	for (int i = 0; i < ly; i++)
		b[i] = y[ly - 1 - i] - '0';
	for (int i = 0; i < lz; i++)
	{
		num[i] += a[i] + b[i];
		if (num[i] >= 10)
		{
			num[i] -= 10;
			num[i + 1] += 1;
		}
	}
	for (int i = lz - 1; i >= 0; i--)
	{
		cout << num[i];
	}
	return 0;
}

